<template>
	<view class="myOrder">
		<view class="tabbar">
			<view :class="item.status == selindex?'check':''" v-for="(item,index) in nav" :key="index" @click="selStatus(item.status)">
				{{ item.name }} 
			</view>
		</view>
		<view class="main">
			<view class="content" v-for="(item,index) in pageResult.list" :key="index">
				<view class="top"  @click="jump('store_order_view', item.id)">
					<view class="state">
						<text>订单编号:{{item.order_sn}}</text>
						<text>{{item.order_status_name}}</text>
					</view>
					<view class="item" style="border-bottom: 1upx solid #ddd;">
						<image :src="item.merchantPicture" mode="aspectFill" style="width: 50upx;height: 50upx;"></image>
						<text>{{item.merchantName}}</text>
						<view style="position: absolute;right: 20rpx;">{{item.shipping_type_name}}</view>
					</view>
					<view class="item" v-for="(product,index2) in item.product_list" :key="index2">
						<image :src="product.product_picture" mode="aspectFill"></image>
						<view class="right">
							<view class="right-p">
								<span v-if="product.reductionName != ''" style="background: rgba(235, 89, 56, 1); color: #ffffff; padding: 0 10rpx;margin-right: 10rpx;">{{product.reductionName}}</span>
								{{product.product_name}}
							</view>
							<!-- <text>{{product.sku_name}}</text> -->
							<text>{{product.adjust_money > 0 ? '￥'+product.adjust_money : ''}}</text>
							<text class="num">{{product.price}}x{{product.num}}</text>
						</view>
					</view>
				</view>
				<view class="bot">
					<view class="bot_pic"  @click="jump('store_order_view', item.id)">
						总计：<text class="red">￥{{item.payInfo.total_money}}</text>
					</view>
					<view class="bot_state">
						<text v-for="(button,index3) in item.button_list" :key="index3" @click="operate(button.type, index)" class="sel">
							{{button.name}}
						</text>
					</view>
				</view>
			</view>
			<view v-if="pageResult.list.length == 0" class="nocontent">
				<image src="https://hdsq.aoorange.cn/attachment/xcx/icon/noItem.png" ></image>
			</view>
		</view>
		<uni-popup ref="popup" type="bottom">
			<view class="pay_type">
				<image @click="close" class="close" :src="'https://hdsq.aoorange.cn/attachment/xcx/icon/close1.png'" mode="aspectFill"></image>
				<view class="title">选择支付方式</view>
				<view class="paypir">
					<text>应付金额</text>
					<text>￥{{pay_money}}</text>
				</view>
				<view class="line2"  v-if="check_use_hdq == 1 && (deduction_hdq_money > 0 || is_use_hdq == 1)"  @click="setUseOther(1)">
					<text>使用互动券 {{use_hdq}} 抵扣金额 ￥{{use_hdq}}</text>
					<view :class="is_use_hdq == 1 ?'check':'nocheck'"></view>
				</view>
				<view class="line2"  v-if="tea_pay_rule.is_use_tea == 1 && check_use_tea == 1 && (deduction_tea_money > 0 || check_use_tea == 1)"  @click="setUseOther(2)">
					<view>使用价值为 {{use_tea}} 的中茶 抵扣金额￥{{tea_money}}(手续费:{{tea_process}})
					<br />
					{{tea_pay_rule.remark}}</view>
					<view :class="is_use_tea == 1 ?'check':'nocheck'"></view>
				</view>
				<view class="line2" v-if="pay_money > 0">
					<text>余额支付 - 当前余额：{{account.user_money}}</text>
					<view :class="pay_type == 5 ?'sel':'nosel'" @click="selPayType(5)" v-if="Number(account.user_money) >= Number(pay_money)"></view>
					<text v-else @click="jump('on_line_recharge')">余额不足</text>
				</view>
				<view class="line2" v-if="pay_money > 0">
					<text>在线微信支付</text>
					<view :class="pay_type == 1 ?'sel':'nosel'" @click="selPayType(1)"></view>
				</view>
				<view :style="'height:' + bottomHeight + 'rpx;'" class="pay_bot" @click="subPay()">确认支付</view>
			</view>
		</uni-popup>
		<uni-popup ref="pickupCode">
			<view class="show pickupCode-box">
				<view class="title">提货码</view>
				<image class="img" :src="pickupCodeImg" ></image>
				<view class="pickupCode-t">{{pickupCode}}</view>
				<view class="btn" @click="pickupCodeClose()">
					<text>确认</text>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	var _self;
	import serve from '../../static/request.js';
	import storage from '../../static/appkey.js';
	import common from '../../static/jump.js';
	export default {
		data() {
			return {
				list: [{}, {}, {}, {}],
				nav: [
					{'status' : 9,  'name': "全部"},
					{'status' : 0,  'name': "待付款"},
					{'status' : 1,  'name': "待发货"},
					{'status' : 2,  'name': "待收货"},
					{'status' : 3,  'name': "已完成"},
				],
				selindex: 9,
				account: {},
				payInfo : {},
				pay_id: 0,
				pay_money: 0,
				user_hdq: 0,
				user_tea: 0,
				use_hdq: 0,
				use_tea: 0,
				tea_money: 0,
				tea_process: 0,
				tea_pay_rule: {},
				is_use_hdq: 0,
				is_use_tea: 0,
				check_use_hdq: 0,
				check_use_tea: 0,
				deduction_hdq_money: 0,
				deduction_tea_money: 0,
				pay_type: 1,
				sel_pay_key : 0,
				pageParam: {
					appkey: uni.getStorageSync('appkey'),
					'access-token': uni.getStorageSync('access-token'),
					synthesize_status: 9,
					page: 0,
					pageSize: 10
				},
				pageResult: {
					list: [],
					isEmpty: false,
					isEnd: false
				},
				pickupCodeImg: '../../static/img/loading.png',
				pickupCode: '提货码',
				bottomHeight: 110,/* 底部按钮高度，避免iPhonex导航黑条 */
			}
		},
		methods: {
			numFilter (value) {
				let tempVal = parseFloat(value).toFixed(3);
				let realVal = tempVal.substring(0, tempVal.length - 1);
				return realVal;
			},
			setUseOther(type) {
				if(type == 1) {
					_self.is_use_hdq = _self.is_use_hdq == 1 ? 0 : 1;
				} else {
					_self.is_use_tea = _self.is_use_tea == 1 ? 0 : 1;
				}
				_self.calculationTotalMoney();
			},
			getTeaUseInfo() {
				serve.request({
					url: '/member/member/get-tea-use-info',
					data: {
						appkey: uni.getStorageSync('appkey'),
						'access-token': uni.getStorageSync('access-token'),
					}
				}).then(res => {
					_self.tea_pay_rule = res.data;
				});
			},
			getList() {
				_self.pageParam.page++
				serve.request({
					url: '/member/order/list',
					data: _self.pageParam
				}).then(res => {
					console.log(res.data); 
					if (res.data && res.data.length > 0) {
						_self.pageResult.list=_self.pageResult.list.concat(res.data);
					}
					_self.pageResult.isEmpty = _self.pageResult.list.length == 0;
					_self.pageResult.isEnd = res.data.length == 0; 
				});
			},
			selStatus(status) {
				_self.selindex = status;
				_self.pageParam.synthesize_status = status;
				_self.pageParam.page=0;
				_self.pageResult.list=[];
				_self.getList();
			},
			operate(operateType, key) {
				let operateId = _self.pageResult.list[key].id;
				if(operateType == 'order_cancel') {
					uni.showModal({
					    title: '提示',
					    content: '您确定取消该订单吗',
					    success: function (res) {
					        if (res.confirm) {
					            serve.request({
									url: '/member/order/cancel',
									data:{
										appkey: uni.getStorageSync('appkey'),
										'access-token': uni.getStorageSync('access-token'),
										id:operateId,
									}
								}).then(res => {
									uni.showToast({
										title:res.message,
										icon: 'none'
									});
									if(res.code == 200) {
										if(_self.selindex == 9){
											_self.pageResult.list[key].order_status_name = "已取消";
											_self.pageResult.list[key].button_list = [];
										} else {
											_self.pageResult.list.splice(key,1);
										}
										_self.$forceUpdate();
									} 
								});
					        } 
					    }
					});
					return ;
				} else if(operateType == 'order_pay'){
					_self.payInfo = _self.pageResult.list[key].payInfo;
					_self.pay_id = operateId;
					_self.is_use_hdq = 0;
					_self.is_use_tea = 0;
					_self.sel_pay_key = key;
					_self.calculationTotalMoney();
					_self.$refs.popup.open();
					return ;
				} else if(operateType == 'tip_delivery'){
					serve.request({
						url: '/member/order/tip-delivery',
						data:{
							appkey: uni.getStorageSync('appkey'),
							'access-token': uni.getStorageSync('access-token'),
							id:operateId,
						}
					}).then(res => {
						uni.showToast({
							title:res.message,
							icon: 'none'
						});
						if(res.code == 200) {
							_self.pageResult.list[key].button_list = [];
							_self.$forceUpdate();
						} 
					});
				} else if(operateType == 'copy_delivery'){
					let express_no = _self.pageResult.list[key].delivery_no;
					uni.setClipboardData({
						data: express_no,
						success: function (){
							uni.showToast({
								title: '复制成功',
								icon: 'none',
							});
						},
						fail:function(){
							uni.showToast({
								title: '对不起，您微信当前版本不支持复制功能',
								icon: 'none',
							});
						}
					});
					uni.getClipboardData({
					    success: function (res) {
					        console.log(res.data);
					    }
					});
				} else if(operateType == 'select_delivery'){
					uni.navigateToMiniProgram({
						appId: 'wx6885acbedba59c14',
						path: 'pages/index/index?source=third_xcx',
						envVersion: 'release',
						success(res) {
							console.log('跳转成功');
						}
					})
				} else if(operateType == 'task_delivery'){
					uni.showModal({
					    title: '提示',
					    content: '您确定该订单已确定收货吗',
					    success: function (res) {
					        if (res.confirm) {
					            serve.request({
									url: '/member/order/take-delivery',
									data:{
										appkey: uni.getStorageSync('appkey'),
										'access-token': uni.getStorageSync('access-token'),
										id:operateId,
									}
								}).then(res => {
									uni.showToast({
										title:res.message,
										icon: 'none'
									});
									if(res.code == 200) {
										if(_self.selindex == 9){
											_self.pageResult.list[key].order_status_name = "待评价";
											_self.pageResult.list[key].button_list = [
												{'type': 'evaluate_order', 'name' : '点评', 'dataId': operateId},
											];
										} else {
											_self.pageResult.list.splice(key,1);
										}
										_self.$forceUpdate();
									} 
								});
					        } 
						}
					});
					return ;
				} else if(operateType == 'show_pickup'){
					let pickList = _self.pageResult.list[key].pickList;
					for(let i = 0; i < pickList.length; i++) {
						let pickItem = pickList[i];
						if(pickItem.status == 0) {
							_self.pickupCodeImg = pickItem.pickupImgUrl;
							_self.pickupCode = pickItem.pickupCode;
							_self.$refs.pickupCode.open();
							return false;
						}
					}
				} else if(operateType == 'confirm_pickup'){
                    uni.showModal({
                        title: '提示',
                        content: '您确定该订单已确定收货吗',
                        success: function (res) {
                            if (res.confirm) {
                                serve.request({
                                    url: '/member/order/confirm-pickup',
                                    data:{
                                        appkey: uni.getStorageSync('appkey'),
                                        'access-token': uni.getStorageSync('access-token'),
                                        id:operateId,
                                    }
                                }).then(res => {
                                    uni.showToast({
                                        title:res.message,
                                        icon: 'none'
                                    });
                                    if(res.code == 200) {
                                        _self.pageResult.list[key].order_status_name = '已完成';
                                        _self.pageResult.list[key].button_list = [];
                                        _self.$forceUpdate();
                                    } 
                                });
                            }
                        },
                    });
				} else if(operateType == 'confirm_finish'){
                    uni.showModal({
                        title: '提示',
                        content: '您确定该订单已确定完成吗',
                        success: function (res) {
                            if (res.confirm) {
                                serve.request({
                                    url: '/member/order/confirm-finish',
                                    data:{
                                        appkey: uni.getStorageSync('appkey'),
                                        'access-token': uni.getStorageSync('access-token'),
                                        id:operateId,
                                    }
                                }).then(res => {
                                    uni.showToast({
                                        title:res.message,
                                        icon: 'none'
                                    });
                                    if(res.code == 200) {
                                        _self.pageResult.list[key].order_status_name = '已完成';
                                        _self.pageResult.list[key].button_list = [];
                                        _self.$forceUpdate();
                                    } 
                                });
                            }
                        },
                    });
                } else if(operateType == 'evaluate_order'){
					common.jump('evaluate_order', operateId);
				}
			},
			/* 展示码关闭按钮 */
			pickupCodeClose(){
				this.$refs.pickupCode.close();
			},
			searchMemberInfo() {
				serve.request({
					url: '/member/member/account',
					data: {
						appkey: uni.getStorageSync('appkey'),
						'access-token': uni.getStorageSync('access-token')
					}
				}).then(res => {
					_self.account = res.data;
					_self.getTeaUseInfo();
				});
			},
			selPayType(type) {
				_self.pay_type = type;
			},
			close() {
				_self.$refs.popup.close();
			},
			subPay() {
				serve.request({
					url: '/order/pay/reset-pay',
					data: {
						appkey: uni.getStorageSync('appkey'),
						'access-token': uni.getStorageSync('access-token'),
						'data_type' : 'order_pay',
						'data_id' : _self.pay_id,
						is_use_hdq: _self.is_use_hdq,
						is_use_tea: _self.is_use_tea,
						pay_type: _self.pay_type
					}
				}).then(res => {
					if(res.code == 200) {
						if(res.data.is_pay == 1) {
							_self.wechatPay(res.data.dataId);
							return ;
						}
						uni.redirectTo({
							url: '/myOrder/order/storeView?id='+res.data.dataId
						});
						return ;
					} 
					uni.showToast({
						title: res.message,
						icon : 'none'
					});
				});
			},
			wechatPay(operateId){
				serve.request({
					url: '/order/pay/wechat',
					data:{
						appkey: uni.getStorageSync('appkey'),
						'access-token': uni.getStorageSync('access-token'),
						data_id:operateId,
						data_type : 'order_pay'
					}
				}).then(res => {
					if(res.code != 200) {
						uni.showToast({
							title:res.message,
							icon: 'none'
						});
						return ;
					}
					let payId = res.data.payId;
					let payConfig = res.data.payConfig;
					uni.requestPayment({
						provider: 'wxpay',
						timeStamp: payConfig.timeStamp,
						nonceStr: payConfig.nonceStr,
						package: payConfig.package,
						signType: payConfig.signType,
						paySign: payConfig.paySign,
						success: function (res) {
							// _self.paySuccess(operateId, 'wechat');
							_self.queryPayResult(payId);
							return ;
						},
						fail: function (err) {
							uni.showToast({
								title: '放弃支付',
								icon: 'none'
							});
							return ;
						}
					})
				});
				return ;
			},
			queryPayResult(payId) {
				uni.showLoading({
					title: '支付结果查询中···',
					mask: true
				});
				setTimeout(function() {
					serve.request({
						url: '/payservice/query-pay',
						data:{
							appkey: uni.getStorageSync('appkey'),
							payId: payId,
						}
					}).then(res => {
						if(res.data.payStatus == 1) {
							_self.paySuccessFun();
						} else {
							_self.queryPayResult(payId);
						}
					});
				}, 1500);
			},
			paySuccessFun() {
				let key = _self.sel_pay_key;
				if(_self.selindex == 9){
					_self.pageResult.list[key].order_status_name = "待发货";
					_self.pageResult.list[key].button_list = [];
				} else {
					_self.pageResult.list.splice(key,1);
				}
				_self.searchMemberInfo();
				_self.$forceUpdate();
				_self.$refs.popup.close();
			},
			calculationTotalMoney() {
				_self.user_hdq = JSON.parse(JSON.stringify(_self.account.user_integral));
				_self.user_tea = JSON.parse(JSON.stringify(_self.account.user_tea));
				// var deductionMoney = _self.payInfo.sure_hdq;
				var payMoney = _self.payInfo.total_money;
				var totalHdq = 0;
				var totalTea = 0;
				var totalTeaMoney = 0;
				var totalTeaProcess = 0;
				_self.deduction_hdq_money = _self.payInfo.hdq_money;
				_self.deduction_tea_money = _self.payInfo.tea_money;
				_self.check_use_hdq = 0;
				_self.check_use_tea = 0;
				if(_self.deduction_hdq_money > 0 && _self.user_hdq > 0) {
					totalHdq = Number(_self.user_hdq) > Number(_self.deduction_hdq_money) ? Math.ceil(_self.deduction_hdq_money) : _self.user_hdq;
					_self.check_use_hdq = 1;
					if(_self.is_use_hdq) {
						_self.deduction_hdq_money = Number(_self.deduction_hdq_money) - Number(totalHdq);
						_self.deduction_tea_money = Number(_self.deduction_tea_money) - Number(totalHdq);
						payMoney = Number(payMoney) - Number(totalHdq);
					}
					console.info("totalHdq --- " + totalHdq);
				}
				if(_self.deduction_tea_money > 0 && _self.tea_pay_rule.is_use_tea == 1 && _self.user_tea > 0) {
					_self.check_use_tea = 1;
					let nowProcess = _self.numFilter((_self.deduction_tea_money * _self.tea_pay_rule.use_tea_ratio) / 100);
					let nowTea = Number(nowProcess) + Number(_self.deduction_tea_money);
					let nowTeaMoney = _self.deduction_tea_money;
					if(Number(nowTea) > Number(_self.user_tea)) {
						nowTeaMoney = _self.numFilter(_self.user_tea / (Number(1) + Number(_self.tea_pay_rule.use_tea_ratio / 100)));
						nowTea = _self.user_tea;
						nowProcess = _self.numFilter(Number(nowTea) - Number(nowTeaMoney));
					}
					console.info("nowTea --- " + nowTea);
					console.info("nowTeaMoney --- " + nowTeaMoney);
					console.info("nowProcess --- " + nowProcess);
					totalTea = Number(totalTea) + Number(nowTea);
					totalTeaMoney = Number(totalTeaMoney) + Number(nowTeaMoney);
					totalTeaProcess = Number(totalTeaProcess) + Number(nowProcess);
					if(_self.is_use_tea) {
						_self.deduction_tea_money = Number(_self.deduction_tea_money) - Number(totalTeaMoney);
						payMoney = Number(payMoney) - Number(totalTeaMoney);
						if(!_self.is_use_hdq && totalTeaMoney == _self.payInfo.product_zero) {
							_self.check_use_hdq = 0;
						}
					}
				}
				// payMoney = Number(payMoney) + Number(deductionMoney);
				_self.pay_money = _self.numFilter(payMoney);
				_self.use_hdq = _self.numFilter(totalHdq);
				_self.use_tea = _self.numFilter(totalTea);
				_self.tea_money = _self.numFilter(totalTeaMoney);
				_self.tea_process = _self.numFilter(totalTeaProcess);
				_self.$forceUpdate();
			},
			jump(jump_type, jump_link){
				common.jump(jump_type, jump_link);
			}
		},
		onLoad(options) {
			if(uni.getSystemInfoSync().safeAreaInsets.top > 20){
				this.bottomHeight = 150;
			}
			_self = this;
			_self.selindex = options.synthesize_status || 9;
			_self.pageParam.synthesize_status = options.synthesize_status || 9;
			_self.getList();
			_self.searchMemberInfo();
		},
		onPullDownRefresh() {
			_self.pageParam.page=0;
			_self.pageResult.list=[];
			_self.getList();
		},
		onReachBottom() {
			if(_self.pageResult.isEnd ||_self.pageResult.isEmpty){
				return
			}
			_self.getList()
		}
	}
</script>

<style scoped lang="scss">
	.myOrder {
		.tabbar {
			width: 100%;
			height: 110upx;
			box-sizing: border-box;
			position: fixed;
			// top: 0upx;
			background: #FFFFFF;
			z-index: 100;
			width: 100%;
			display: flex;
			border-bottom: 1upx rgba(235, 235, 235, 1) solid;
			view {
				color: #999999;
				font-size: 32upx;
				display: inline-block;
				width: 20%;
				vertical-align: middle;
				text-align: center;
				line-height: 110upx;
			}
			.check {
				position: relative;
				color: #232323;
			}
			.check::after{
				content: "";
				position: absolute;
				bottom: 0;
				left: 45%;
				width:30upx;
				height:7upx;
				background:rgba(255,188,0,1);
				border-radius:3upx;
			}
		}
		.main {
			padding-top: 110upx;
			.content {
				box-sizing: border-box;
				border-bottom: 16upx #F7F7FA solid;
				.top {
					box-sizing: border-box;
					padding-left: 30upx;
					border-bottom: 1upx #EBECF0 solid;
					.state {
						display: flex;
						font-size: 28upx;
						height: 96upx;
						align-items: center;
						justify-content: space-between;
						color: rgba(57, 72, 107, 0.5);
						padding-right: 30upx;
						box-sizing: border-box;
						border-bottom: 1upx rgba(204, 204, 204, 0.5) solid;
						text:last-child {
							color: #FF5F60;
							font-weight: bold;
						}
					}
					.item {
						display: flex;
						align-items: center;
						padding: 32upx 27upx 32upx 0upx;
						box-sizing: border-box;
						image {
							width: 170upx;
							height: 170upx;
							margin-right: 16upx;
						}
						.right {
							width: 510upx;
							// display: flex;
							// flex-direction: column;
							// justify-content: center;
							font-size: 32upx;
							position: relative;
							.right-p{
								-webkit-line-clamp: 2;
								overflow: hidden;
								word-break: break-all;
								text-overflow: ellipsis; 
								display: -webkit-box; 
								-webkit-box-orient: vertical; 
							}
							
							text:nth-child(2) {
								padding-top: 22upx;
								color: #999999;
								font-size: 24upx;
							}
							text:nth-child(3) {
								font-size: 28upx;
								color: #EB5938;
								font-weight: bold;
								padding-top: 22rpx;
								margin-top: 10upx;
							}
							text:nth-child(4) {
								font-size: 36upx;
								text-decoration:line-through;
							}
							text:first-child {
								white-space: nowrap;
								text-overflow: ellipsis;
								overflow: hidden;
								word-break: break-all;
							}
							.num {
								position: absolute;
								top: 66upx;
								right: 0upx;
								font-size: 24upx;
								color:#999999;
                                text-decoration: none !important;
							}
						}
					}
				}
				.bot {
					padding-right: 30upx;
					.bot_pic {
						padding: 30upx 0upx;
						font-size: 28upx;
						width: 100%;
						display: flex;
						justify-content: flex-end;
						align-items: flex-end;
						text:last-child {
							color: #EB5938;
							font-weight: bold;
							font-size: 32upx;
						}
					}
					.bot_state {
						display: flex;
						justify-content: flex-end;
						text {
							line-height: 72upx;
							text-align: center;
							font-size: 28upx;
							margin-left: 23upx;
							margin-bottom: 40upx;
							width:200upx;
							height:72upx;
							border-radius:36upx;
						}
						.sel {
							background: #EB5938;
							color: #FFFFFF;
						}
						.sel1 {
							background:rgba(255,255,255,1);
							border:1px solid #999999;
							color: #999999;
						}
						.sel2 {
							border:1px solid rgba(255,95,96,1);
							color:rgba(255,95,96,1) ;
						}
					}
				}
			}
		}
		.nocontent{
			width: 100%;
			padding-top: 338upx;
			display: flex;
			flex-direction: column;
			align-items: center;
			image{
				width:220upx;
				height:220upx;
			}
			text{
				font-size:28upx;
				color:rgba(204,204,204,1);
			     margin-top: 30upx;
			}
		}
		.pay_type{
			position: relative;
			width: 100%;
			background: #FFFFFF;
			padding-bottom: 140upx;
			.close{
				position: absolute;
				width:23upx;
				height:23upx;
				right: 40upx;
				top: 45upx;
			}
			.title{
				width: 100%;
				text-align: center;
				height: 100upx;
				line-height: 100upx;
				font-size: 36upx;
				border-bottom: 1upx #EBECF0 solid;
			}
			.paypir{
				display: flex;
				justify-content: center;
				flex-direction: column;
				align-items: center;
				padding: 50upx 0upx 20upx;
				font-size: 28upx;
				color: #FF5F60;
				text:last-child{
					color: #FF5F60;
					font-size: 40upx;
					font-weight: bold;
					margin-top: 10upx;
				}
			}
			.line2{
				width: 100%;
				box-sizing: border-box;
				padding: 36upx;
				display: flex;
				justify-content: space-between;
				font-size: 28upx;
				color: #333333;
				border-bottom: 1upx #EBECF0 solid;
				.txt{
					color: #999999;
				}
				.nosel {
					width: 36upx;
					height: 36upx;
					border: 1upx solid rgba(60, 72, 104, 1);
					border-radius: 50%;
				}
				.sel {
					background-image: url(../../static/img/check.png);
					background-repeat: no-repeat;
					width: 40upx;
					height: 40upx;
					background-size: 100%;
				}
				.nocheck {
					width: 36upx;
					height: 36upx;
					border: 1upx solid rgba(60, 72, 104, 1);
					border-radius: 20%;
				}
				.check {
					background: url(../../static/img/checkbox_check.png);
					background-repeat: no-repeat;
					width: 40upx;
					height: 40upx;
					background-size: 100%;
				}
			}
			.pay_bot {
			  width: 100%;
			  position: fixed;
			  left: 0;
			  bottom: 0;
			  height: 100upx;
			  background: #FFBC00;
			  color: #fff;
			  font-size: 32upx;
			  line-height: 100upx;
			  text-align: center;
			  border-radius: 0;
			  &::after{
				  border: none;
			  }
			}
		}
		.pickupCode-box{
			width: 80vw;
			background: #fff;
			border-radius: 8rpx;
			.title{
				width: 100%;
				    text-align: center;
				    color: #333333;
				    height: 100rpx;
				    line-height: 100rpx;
				    font-size: 36rpx;
			}
			.img{
				width: 480rpx;
				    height: 48rrpx;
				    position: relative;
				    left: 50%;
				    margin-left: -240rpx
			}
			.pickupCode-t{
				    width: 100%;
				    text-align: center;
				    height: 60rpx;
				    line-height: 60rpx;
				    letter-spacing: 8rpx;
				    font-size: 40rpx;
			}
			.btn{
				    width: 100%;
				    height: 100rpx;
				    text-align: center;
				    line-height: 100rpx;
				    font-size: 32rpx;
				    color: #333333;
			}
		}
		
	}
</style>
